package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 基础数据（省份）
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_base_province")
public class BaseProvince extends Model<BaseProvince> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Integer id;
    /**
     * 省行政区代码
     */

	@TableField("code")
	private String code;
    /**
     * 省份名称
     */

	@TableField("name")
	private String name;
    /**
     * 是否已删除，0表示未删除，1表示已删除
     */

	@TableField("is_deleted")
	private Integer isDeleted;


	public Integer getId() {
		return id;
	}

	public BaseProvince setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getCode() {
		return code;
	}

	public BaseProvince setCode(String code) {
		this.code = code;
		return this;
	}

	public String getName() {
		return name;
	}

	public BaseProvince setName(String name) {
		this.name = name;
		return this;
	}

	public Integer getIsDeleted() {
		return isDeleted;
	}

	public BaseProvince setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}